<%@ page import="cn.Student" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021-11-24
  Time: 11:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<html>
<head>
    <title>Title</title>
    <%
        request.setAttribute("ms","nihao");
        session.setAttribute("ms","大扎好");
        String ar[]={"苹果","香蕉","橘子","水蜜桃"};
        request.setAttribute("fruit",ar);
        Student st=new Student();
        st.setSname("王二麻子");
        request.setAttribute("student",st);
    %>
</head>
<body>
<div>
    el内置对象：4个范围：xxxScope<Br/>
    param,paramValues...,cookie
</div>
<h1>not in:${fff.gg.jhjh}</h1>
 <h1>${ms}</h1>
<h1>in session:${sessionScope.ms}</h1>
<h1>${fruit},${fruit[1]}</h1>
<h1>${student.sname}==${student.qq}</h1>
<h2>${empty student.wechat}</h2>
<h3>${cookie["loginNums"].value}</h3>
</body>
</html>
